package com.user_hosted_storage.dto;

import java.util.LinkedList;

import javax.xml.bind.annotation.XmlRootElement;

import com.user_hosted_storage.dto.annotations.Transient;

@XmlRootElement
public class CommunityDTO extends DTO{

	private String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Transient
	private LinkedList<CommunityMemberDTO> members;

	public LinkedList<CommunityMemberDTO> getMembers() {
		return members;
	}
	
	public void addMember(CommunityMemberDTO member){
		if(members == null) {
			members = new LinkedList<CommunityMemberDTO>();
		}
		members.add(member);
	}	
}
